// shopCart/pages/paysuccess/paysuccess.js
Page({
  data: {
    orderId: ''
  },
  goHome() {
    wx.switchTab({
      url: '/pages/index/index'
    });
  },
  viewOrder() {
    wx.navigateTo({
      url: '/my/pages/xtxNoShip/xtxNoShip?orderId=' + this.data.orderId
    });
  },
  onLoad(options) {
    if (options && options.orderId) {
      this.setData({
        orderId: options.orderId
      });
    }
  }
});